useradd yashan

chmod +w sudoers
cat>> /etc/sudoers EOF
yashan  ALL=(ALL)NOPASSWD:ALL
FOE
chmod +w sudoers

groupadd YASDBA
usermod -a -G YASDBA yashan
passwd yashan

# echo "

 * soft nofile 1048576

 * hard nofile 1048576

 * soft nproc 1048576

 * hard nproc 1048576

 * soft rss unlimited

 * hard rss unlimited

 * soft stack 8192

 * hard stack 8192

" >> /etc/security/limits.conf


$ ./bin/yasboot package se gen --cluster yashandb -u yashan -p ssh登录密码 --ip 192.168.1.2 --port 22 --install-path /data/yashan/yasdb_home  --data-path /data/yashan/yasdb_data --begin-port 1688
 hostid   | group | node_type | node_name | listen_addr    | replication_addr | data_path
--------------------------------------------------------------------------------------------------------
 host0001 | dbg1  | db        | 1-1       | 192.168.1.2:1688 | 192.168.1.2:1689   | /data/yashan/yasdb_data
----------+-------+-----------+-----------+----------------+------------------+-------------------------

Generate config completed


$ ./bin/yasboot package install -t hosts.toml
checking install package...
install version: yashandb 23.2.11.100
host0001 100% [====================================================================]   27s
update host to yasom...


$ ./bin/yasboot cluster deploy -t yashandb.toml -p password
 type | uuid             | name               | hostid | index    | status  | return_code | progress | cost
------------------------------------------------------------------------------------------------------------
 task | 356b6a4a51ad600a | DeployYasdbCluster | -      | yashandb | SUCCESS | 0           | 100      | 9
------+------------------+--------------------+--------+----------+---------+-------------+----------+------
task completed, status: SUCCESS

$ cd /data/yashan/yasdb_home/23.2.11.100/conf
# 如~/.bashrc中已存在YashanDB相关的环境变量，将其清除

$ cat yashandb.bashrc >> ~/.bashrc
$ source ~/.bashrc
$ yasboot cluster status -c yashandb
 host_id  | node_type | nodeid | pid
--------------------------------------
 host0001 | db        | 1-1:1  | 8554
----------+-----------+--------+------


$ yasql sys/newpasswd
YashanDB SQL Personal Edition Release 23.2.11.100 x86_64

Connected to:
YashanDB Server Personal Edition Release 23.2.11.100 x86_64 - X86 64bit Linux

SQL>



$ yasboot cluster password set -n newpasswd -c yashandb


export PATH=$PATH:/home/yasdb/yashandb_client/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/yasdb/yashandb_client/lib

